import Router from 'vue-router'
import Vue from '../vue'
import App from '../component/app/app.vue'
import Users from '../component/money/users/users.vue'
import Record from '../component/money/record/record.vue'
import ModifyRecord from '../component/money/modify-record/modify-record.vue'
import ApplyCount from '../component/money/apply-count/apply-count.vue'

Vue.use(Router)

var app = Vue.extend(App)
var router = new Router()

router.map({
  '/': {
    component: Users
  },
  '/user/:id': {
    component: Record
  },
  '/modify/:id': {
    component: ModifyRecord
  },
  '/apply/count': {
    component: ApplyCount
  }
})

router.start(app, 'app')
